<div class="location">
	当前位置：
	<a href="#">首页</a> &gt; 
	<span>会员中心</span>
</div>
<?php echo $this->Html->script(array('jquery/jquery-ajaxfileupload','default/avatar'))?>
<div class="content">
    	<div class="conRight floatl Box">
        	<?php echo $this->element('index/ucMenu')?>
        </div>
    	<div class="conLeft floatr Box Indtion">
        	<h3 class="vipTitle">个人信息</h3>
        	<?php echo $this->Form->create('User');?>
            <ul class="added personal" style="border:0; float:left;">	
                <li>
                    <span><em>*</em> 昵称:</span>
                    <?php echo $this->Form->input('name',array('class'=>'txt','label'=>false,'div'=>false))?>
                    请输入您的昵称
                </li>
                <li>
                    <span><em>*</em> 性别:</span>
                    <?php echo $this->Form->input('sex',array('options'=>sex(),'type'=>'radio','legend'=>false))?>
                </li>
                <li>
                    <span><em>*</em> 电子邮件:</span>
                    <?php echo $this->Form->input('email',array('class'=>'txt','label'=>false,'div'=>false))?>
                    请输入你的电子邮件
                </li>
                <li>
                    <span><em>*</em> 手机:</span>
                    <?php echo $this->Form->input('mobile',array('class'=>'txt','label'=>false,'div'=>false))?>
                    请输入你的手机号，方便联系
                </li>
                <li>
                	<?php echo $this->Form->submit("确认修改",array('class'=>'btnTj'))?>
                </li>
            </ul>
            <?php echo $this->Form->end();?>
            <div class="touxiang">
            	<ul>
                	<li class="photo01">
                		<?php 
                		if($this->request->data['User']['sys_photo_id']){
                			$pic= $this->request->data['SysPhoto']['file_path'];
                		}else{
                			$pic = 'default/tximg2.jpg';
                		}
                		echo $this->Html->image($pic,array('id'=>'target'))
                		?>
                	</li>
                </ul>
                <div class="clear"></div>
            		<a class="btn_addPic" href="javascript:void(0);">
            			<span>选择您要上传的头像</span> 
            			<input class="filePrew" name = "data[AlbumPic][file]" id = 'headfile' onchange = 'avatar.upload()' tabindex="3" type="file" name="pic" size="3">
            			<span>上传中...</span>
            		</a>
                <p class="xianzhi">我们只接受jpg，gif，png，bmp格式图像；图像最大不要超过2Mb或2000Kb</p>
                <div class="clear"></div>
                <div class="anniu" style = 'display:none'>
                    <input name="" type="button" value="保存头像" class="btn">
                    <input name="" type="button" value="取消" class="btn2">
                </div>
            </div>
	  </div>
    </div>	
